package com.ruoyi.daily.controller;

import com.ruoyi.common.core.domain.R;
import com.ruoyi.daily.domain.dto.CustomerServiceFiveStarDto;
import com.ruoyi.daily.domain.dto.FiveNetworkDto;
import com.ruoyi.daily.domain.dto.MonitoringStationDto;
import com.ruoyi.daily.domain.vo.FiveStarVo;
import com.ruoyi.daily.service.FiveStarManagementService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;
import java.util.Map;

/**
 * @Author cmz
 * @Date 2024-06-03 10:15
 */
@RestController
@RequestMapping("/daily/fiveStarManagement")
@Api(tags = "经营日报-五星管理")
public class FiveStarManagementController {

    @Resource
    private FiveStarManagementService fiveStarManagementService;
    
    @ApiOperation("五星(承包区、站柜、业务员、客服)")
    @PostMapping("/customerServiceFiveStar")
    public R<CustomerServiceFiveStarDto> customerServiceFiveStar(@RequestBody FiveStarVo fiveStarVo) {
        return fiveStarManagementService.customerServiceFiveStar(fiveStarVo);
    }

    @ApiOperation("网点")
    @GetMapping("/network/{month}")
    public R<FiveNetworkDto> network(@ApiParam(name = "month", value = "查询的时间(YYYYMM)", required = true) @PathVariable String month) {
        return fiveStarManagementService.network(month);
    }
}
